﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.System_Demo {

  public partial class Lambda_Demo : System.Web.UI.Page {

    delegate int del(int i);

    protected void Page_Load(object sender, EventArgs e) {
      if (!IsPostBack) {
        del myDelegate = x => x * x;
        int j = myDelegate(5);
        Response.Write(j + "<br />");
        //Response.Write(NumericHelper.GenerateRandomCode(16));
      }
    }
  }
}